/* .theme {
    position: relative;
    border-radius: 50%;
    display: block;
    height: 24px;
    overflow: hidden;
    width: 24px;
    transition: 0.5s all ease;
}

.theme:hover {
    cursor: pointer;
}

.theme:before {
    content: "";
    display: block;
    position: absolute;
}

.theme.light:before {
    animation-duration: 0.5s;
    animation-name: sun;
    background-color: var(--text-color);
    border-radius: 50%;
    box-shadow: 10px 0 0 -3.5px var(--text-color),
      -10px 0 0 -3.5px var(--text-color),
      0 -10px 0 -3.5px var(--text-color),
      0 10px 0 -3.5px var(--text-color),
      7px -7px 0 -3.5px var(--text-color),
      7px 7px 0 -3.5px var(--text-color),
      -7px 7px 0 -3.5px var(--text-color),
      -7px -7px 0 -3.5px var(--text-color);
    height: 10px;
    left: 7px;
    top: 7px;
    width: 10px;
} */

/* .theme.light:before:hover {
    background-color: var(--background-color);
    box-shadow: 10px 0 0 -3.5px var(--background-color),
                -10px 0 0 -3.5px var(--background-color),
                0 -10px 0 -3.5px var(--background-color),
                0 10px 0 -3.5px var(--background-color),
                7px -7px 0 -3.5px var(--background-color),
                7px 7px 0 -3.5px var(--background-color),
                -7px 7px 0 -3.5px var(--background-color),
                -7px -7px 0 -3.5px var(--background-color);
} */

/* .theme.dark::before {
      animation-duration: .5s;
      animation-name: moon;
      background-color: var(--text-color);
      border-radius: 50%;
      height: 20px;
      left: 2px;
      top: 2px;
      width: 20px;
      z-index: 1;
} */

/* .theme.dark::before:hover {
    background-color: var(--background-color);
} */
      
/* .theme.dark::after {
    animation-duration: .5s;
    animation-name: moon-shadow;
    background: var(--background-color);
    border-radius: 50%;
    content: "";
    display: block;
    height: 18px;
    position: absolute;
    right: -2px;
    top: -2px;
    width: 18px;
    z-index: 2;
} */

/* @keyframes sun {
    from {
        background-color: var(--background-color);
        box-shadow: 0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color),
                    0 0 0 -5px var(--background-color);
  }
    to {
        background-color: var(--text-color);
        box-shadow: 10px 0 0 -3.5px var(--text-color),
                    -10px 0 0 -3.5px var(--text-color),
                    0 -10px 0 -3.5px var(--text-color),
                    0 10px 0 -3.5px var(--text-color),
                    7px -7px 0 -3.5px var(--text-color),
                    7px 7px 0 -3.5px var(--text-color),
                    -7px 7px 0 -3.5px var(--text-color),
                    -7px -7px 0 -3.5px var(--text-color);
  }
} */

/* @keyframes moon {
  from {
    height: 0;
    left: 12px;
    top: 12px;
    width: 0;
  }
  to {
    height: 20px;
    left: 2px;
    top: 2px;
    width: 20px;
  }
}

@keyframes moon-shadow {
  from {
    background-color: var(--background-color);
    height: 0;
    right: 7px;
    top: 7px;
    width: 0;
  }
  to {
    background-color: var(--background-color);
    height: 18px;
    right: -2px;
    top: -2px;
    width: 18px;
  }
} */

.switch-mode {
    perspective: 200px;
    width: 50px;
    height: 50px;
    display: flex;
}

.modes {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
    transform-origin: center right;
    transition: transform 1s;
}

.modes.is-flipped {
    transform: translateX(-100%) rotateY(-180deg);
}

.switch-mode:focus-visible {
    outline: -webkit-focus-ring-color auto 1px;
}

.modes__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: rgb(123, 117, 119);
    transition: transform 0.3s ease
}

.modes__icon--light {
  background-color: rgb(107, 158, 240);
  color: rgb(242, 242, 30);
  transform: rotateY(180deg);
}
